package com.content.management.domain.query;

import com.content.management.common.BasePage;
import com.content.management.util.DateHelper;
import com.content.management.util.PublishType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * @author xinghu
 * @version 1.0
 * @date 2020/4/4 4:39 下午
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "内容发布查询条件", description = "发布内容")
public class PublishContentQuery extends BasePage {


	@ApiModelProperty(value = "内容状态：0：已发布；1：未发布 2：则为全部")
	private Integer publishStatus;

	@ApiModelProperty(value = "内容主题")
	private String contentTopic;

	@ApiModelProperty(value = "所属分类")
	private String classification;

	@ApiModelProperty(value = "发布开始时间 格式：" + DateHelper.DATE_TIME_FORMAT)
	private String startPublishTime;

	@ApiModelProperty(value = "发布结束时间 格式：" + DateHelper.DATE_TIME_FORMAT)
	private String endPublishTime;

	@ApiModelProperty(value = "创建开始时间 格式：" + DateHelper.DATE_TIME_FORMAT)
	private String startCreateTime;

	@ApiModelProperty(value = "创建结束时间 格式：" + DateHelper.DATE_TIME_FORMAT)
	private String endCreateTime;

	@ApiModelProperty(value = "发布类型 ：ALERT、公告；CONTENT 、内容")
	private PublishType publishType = PublishType.CONTENT;
}
